package com.sumainfor.pc.market.controller.tenant;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.tenant.TenantHousingEvaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 根据租客id查询查询房源信息
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-04-17 13:36
 **/
@Controller
@RequestMapping("/tenant/key/tenantHousingEva")
public class TenantHousingEvaController {

    @Autowired
    TenantHousingEvaService tenantHousingEvaService;

    @ResponseBody
    @PostMapping("/getTenantHousing")
    public JsonResult getTenantHousing(@RequestBody Map<String,Object> params){
        return tenantHousingEvaService.getTenantHousing(params);

    }
}
